package com.learn.file;

import java.io.FileInputStream;
import java.io.FileOutputStream;

public class Copy {
    public static void main(String[] args) throws Exception {

        long start = System.currentTimeMillis();
        FileInputStream fis = new FileInputStream("D:\\software\\v\\30-1\\壹屌寻欢鸭哥猛男上场 清纯学妹  大屌征服嫩妹刺激淫靡.mp4");
        FileOutputStream fos = new FileOutputStream("D:\\software\\v\\30-1\\169.mp4");
//        System.out.println(fileInputStream.read());

//        int c;
//        while ((c = fileInputStream.read()) != -1){
//            System.out.print((char)c);
//        }

        byte[] bytes = new byte[1024];
        int len;
        while ((len=fis.read(bytes)) != -1){
//            System.out.println(Arrays.toString(bytes));
            fos.write(bytes,0,len);
        }

        fos.close();
        fis.close();

        long end = System.currentTimeMillis();
        System.out.println("耗时："+(end-start));
    }
}
